package passworks.Gates;

import passworks.*;
import java.util.ArrayList;

public class Switch extends GeneratorBase {


    public Switch(int id, boolean s) {
        super(id);
        className = "Switch";

        Logger.Print(className, className, Direction.IN, ownID);
        switchable = true;

        pattern = new ArrayList<Boolean>();
        pattern.add(false);
        pattern.add(true);

        patternPointer = 0;
        if (s)
        {
            patternPointer++;
        }

        
        Logger.Print(className, className, Direction.OUT, ownID);

    }
}